<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>学习营管理系统</title>
    <link rel="stylesheet" type="text/css" th:href="@{/easyui/css/default.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/easyui/themes/default/easyui.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/easyui/themes/icon.css}" />
    <script type="text/javascript" th:src="@{/easyui/jquery.min.js}"></script>
    <script type="text/javascript" th:src="@{/easyui/jquery.easyui.min.js}"></script>
    <script type="text/javascript" th:src='@{/easyui/js/outlook2.js}'> </script>
</head>
<body class="easyui-layout" style="overflow-y: hidden"  scroll="no">

<!-- 顶部导航 -->
<div region="north" split="true" border="false" style="overflow: hidden; height: 30px;
        background: url(images/layout-browser-hd-bg.gif) #7f99be repeat-x center 50%;
        line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
        <span style="float:right; padding-right:20px;" class="head">
            <!-- 显示当前登录的用户 -->
            <span style="color:red; font-weight:bold;" shiro:hasRole="admin" th:text="${session.admin.username}">&nbsp;</span>
            <span style="color:red; font-weight:bold;" shiro:hasRole="student" th:text="${session.student.username}">&nbsp;</span>
            <span style="color:red; font-weight:bold;" shiro:hasRole="teacher" th:text="${session.teacher.username}">&nbsp;</span>
            您好&nbsp;&nbsp;&nbsp;
            <a th:href="@{/system/logout}" id="loginOut">安全退出</a>
        </span>
    <span style="padding-left:10px; font-size: 16px; ">学生信息管理系统</span>
</div>

<!-- 左侧菜单栏 -->
<div region="west" hide="true" split="true" title="导航菜单" style="width:180px;" id="west">
    <div id="nav" class="easyui-accordion" fit="true" border="false">
        <!-- 菜单内容 -->
        <!-- 管理员菜单 -->
        <shiro:hasRole name="admin">
            <div title="学生信息管理" icon="icon-user-student">
                <ul>
                    <li><a href="/student/student_list">学生列表</a></li>
                </ul>
            </div>
            <div title="班级信息管理" icon="icon-house">
                <ul>
                    <li><a href="/clazz/clazz_list">班级列表</a></li>
                </ul>
            </div>
            <div title="教师信息管理" icon="icon-user-teacher">
                <ul>
                    <li><a href="/teacher/teacher_list">教师列表</a></li>
                </ul>
            </div>

            <div title="系统管理" icon="icon-set">
                <ul>
                    <li><a href="/system/personalView">修改密码</a></li>
                </ul>
            </div>
            <div title="活动管理" icon="icon-book-open">
                <ul>
                    <li><a href="/activity/activity_list">活动列表</a></li>
                </ul>
            </div>

        </shiro:hasRole>

        <!-- 学生菜单 -->
        <shiro:hasRole name="student">
            <div title="点名列表" icon="icon-user-student">
                <ul>
                    <li><a href="/calling/createCalling">老师发布点名</a></li>
                    <li><a href="/calling/signIn">签到</a></li>
                </ul>
            </div>
            <div title="学习单元" icon="icon-set">
                <ul>
                    <li><a href="/learningunit/learningunit">学习列表</a></li>
                </ul>
            </div>
            <div title="我的课程" icon="icon-book-open">
                <ul>
                    <li><a href="/course/course_list">课程列表</a></li>
                </ul>
            </div>
            <div title="我的班级" icon="icon-house">
                <ul>
                    <li><a href="/clazz/clazz_list">班级列表</a></li>
                </ul>
            </div>

        </shiro:hasRole>

        <!-- 教师菜单 -->
        <shiro:hasRole name="teacher">

            <div title="点名管理" icon="icon-user-student">
                <ul>
                    <li><a href="/calling/createCalling">发布点名</a></li>
                    <li><a href="/calling/signIn">签到</a></li>
                </ul>
            </div>
            <div title="我的课程" icon="icon-book-open">
                <ul>
                    <li><a href="/course/course_list">课程列表</a></li>
                </ul>
            </div>
            <div title="我的班级" icon="icon-house">
                <ul>
                    <li><a href="/clazz/clazz_list">班级列表</a></li>
                </ul>
            </div>
        </shiro:hasRole>
    </div>
</div>

<!-- 主面板 -->
<div id="mainPanle" region="center" style="background: #eee; overflow-y:hidden">
    <div id="tabs" class="easyui-tabs" fit="true" border="false" th:include="system/welcome :: welcome">
    </div>
</div>
</body>
</html>